<template>
  <div>
    <router-link tag="span" to="/film/nowplaying">正在热映</router-link>
    <router-link tag="span" to="/film/comingsoon">即将上映</router-link>
    <hr />
    <!-- 用于嵌套路由的渲染 子路由 -->
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  data() {
    return {
	username:''
    };
  },
  mounted() {
	this.username  // 劫持  Object.defineProperty
  },
};
</script>

<style scoped>
.router-link-active {
  color: red;
  cursor: pointer;
}
</style>
